package com.sojson.project.service.token;

import java.io.IOException;

import org.springframework.stereotype.Service;

import com.sojson.project.sys.user.entity.vo.UserVo;
import com.sojson.util.token.TokenUtil;
import com.sojson.util.token.interfaces.TokenUserAppService;

/**
 * App用户Service实现类
 * 
 * @author liu
 * @date 2021-04-30
 */
@Service
public class TokenUserAppServiceImpl implements TokenUserAppService {

    /**
     * 获取用户的邀请码
     */
    @Override
    public String getInvitationCode() throws IOException {
        return ((UserVo)TokenUtil.getUser()).getInvitationCode();
    }

}